home *** CD-ROM | disk | FTP | other *** search
/ ftp.cs.arizona.edu / ftp.cs.arizona.edu.tar / ftp.cs.arizona.edu / icon / newsgrp / group99a.txt / 000089_icon-group-sender _Tue Apr 6 16:58:43 1999.msg < prev    next >
Internet Message Format  |  2000-09-20  |  2KB

  1. Return-Path: <icon-group-sender>
  2. Received: (from root@localhost)
  3.     by baskerville.CS.Arizona.EDU (8.9.1a/8.9.1) id QAA18453
  4.     for icon-group-addresses; Tue, 6 Apr 1999 16:56:40 -0700 (MST)
  5. Message-Id: <199904062356.QAA18453@baskerville.CS.Arizona.EDU>
  6. Date: Tue, 06 Apr 1999 16:09:24 -0500
  7. From: "Charles Hethcoat" <chethcoa@oss.oceaneering.com>
  8. To: rjhare@ed.ac.uk, icon-group@optima.CS.Arizona.EDU
  9. Subject: Re: Visualisation
  10. Content-Disposition: inline
  11. X-MIME-Autoconverted: from quoted-printable to 8bit by baskerville.CS.Arizona.EDU id OAA12042
  12. Errors-To: icon-group-errors@optima.CS.Arizona.EDU
  13. Status: RO
  14.  
  15. On a lark, to learn more about how 3D graphics are implemented, I started rewriting the C code in a textbook several years ago.  Here are the header comments:
  16.  
  17. # model3d.icn - rudimentary 3-d modelling with Gnuplot output
  18.  
  19. # The basic approach is borrowed from "High-Resolution Computer
  20. # Graphics Using C" by Ian Angell (Wiley/Halstead, 1990). However,
  21. # since this is Icon, the code is much clearer, the data structures
  22. # are simpler, and I haven't shrunk from changing some routines into
  23. # functions returning structured values to the point of invocation.
  24.  
  25. # Gnuplot is the output "device". There is no interface with any other
  26. # hardware, nor any attempt to format for any other plotting language.
  27. # If you don't have gnuplot installed, get it. You're going to need
  28. # it.
  29.  
  30. What is there is crude.  It has worked fine on my limited testing, but as yet there is no interactivity, no animation, not much color (lines only), and no surface textures.  These could be added, but I haven't had much time to work on it in a couple of years.  It could easily be modified to emit PostScript or VRML as well as Gnuplot.  If this sounds interesting (to anybody) as a basis for further work, I could post what I have to a friendly FTP site (due to exigencies beyond my control, I cannot keep mine up 24 hours a day).
  31.  
  32. Let me know if you want a copy.
  33.  
  34. Cheers,
  35. Charles Hethcoat
  36.  
  37. >>> <rjhare@ed.ac.uk> 99-04-06 10:32:53 AM >>>
  38. ...anyone used Icon to create a `basic' visualisation suite which could handle
  39. (say) `stick and ball' molecular models or vector/streamline visualisation?
  40.  
  41. I can't see anything `obvious' in the IPL which maps to this.
  42.  
  43.  
  44.